#ifndef NALPARSER_H
#define NALPARSER_H

#include <vector>
#include <iostream>


/*帧信息解析相关api*/

int h264_frame_type(unsigned char*buf,unsigned int nLen);//获取h264帧类型

int h265_frame_type(unsigned char*buf,unsigned int nLen);//获取h265帧类型

void GetResolution(const char *code_name, unsigned char*buf, unsigned int nLen, unsigned int* width, unsigned int* height );

void GetSEIPayload (const char *code_name, unsigned char*buf, unsigned int nLen, std::vector<int8_t>& payload);
#endif

